window.onload = function(){
//	获取节点
var leftP = document.getElementById("leftP");
var classLeft = document.getElementById("classLeft");

//	大图和列表展示
//按钮节点
var show = document.getElementById("show");
var lisShow = show.getElementsByTagName("li");
//展示区节点
var showL = document.getElementById("showL");
var showT = document.getElementById("showT");


console.log(classLeft);

//leftP.onclick = function(){
//	classLeft.style.display = "none";
//}
//leftP.ondblclick = function(){
//	classLeft.style.display = "block";
//}
var num = 0;

     leftP.onclick = function(){
     	 num++
     if(num%2==0){
	   
	    classLeft.style.display = "none";
    
      }else{
       classLeft.style.display = "block";
    }
}
//                            	大图和列表展示
	showT.style.display = "none";
	lisShow[0].onclick = function(){
		showL.style.display = "none";
		showT.style.display = "block";
	}
	lisShow[1].onclick = function(){
		showL.style.display = "block";
		showT.style.display = "none";
	}
	
}//加载函数
